ternary operator in java for null check

78

ternary operator in java for null check -

String value = object != null ? object.getValue() : null;

Comments

Submit
0 Comments